//
//  HomeViewController.h
//  eGifr
//
//  Created by Phien Tram on 8/4/13.
//  Copyright (c) 2013 eGiftr. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "DataManager.h"

@protocol HomeViewDelegate;

@interface HomeViewController : UIViewController <UITextFieldDelegate, DataManagerDelegate>

@property (nonatomic, strong) IBOutlet UIScrollView *scrollView;
@property (strong, nonatomic) IBOutlet UITextField *usernameTextField;
@property (strong, nonatomic) IBOutlet UITextField *passwordTextField;

@property (nonatomic, strong) IBOutlet UIActivityIndicatorView *spinner;

@property (nonatomic, weak) id<HomeViewDelegate> delegate;
@property (nonatomic, strong) DataManager *dataManager;


- (IBAction)forgotPasswordButtonOnClicked:(id)sender;
- (IBAction)loginButtonOnClicked:(id)sender;
- (IBAction)loginFacebookButtonOnClicked:(id)sender;


@end

@protocol HomeViewDelegate <NSObject>

- (void)homeViewLoginSuccessful:(HomeViewController *)viewController;
@end